package util;

final public class Color4F
{
	public float red,green,blue,alpha;
	public Color4F(float red,float green,float blue)
	{
		this.red = red;
		this.green = green;
		this.blue = blue;
		alpha = 1.0f;
	}
	public Color4F(float red,float green,float blue,float alpha)
	{
		this.red = red;
		this.green = green;
		this.blue = blue;
		this.alpha = alpha;
	}
	public int toInt()
	{
		
		int rvalue = (int)(blue*255) + ((int)(green*255) << 8) + ((int)(red*255) << 16) + ((int)(alpha * 255) << 24);
		return rvalue;
	}
}
